package com.luyue.zagj.adapter;

import android.content.Context;
import android.view.ViewGroup;

import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter;
import com.luyue.zagj.domin.News;

/**
 * Created by luyue on 2016/11/21.
 * 用News 实体类做演示，实际使用时 根据 接口传回数据做改变
 * 显示用随机数据 实际使用时候 使用List传回的数据
 */

public class VhicleManaAdapter extends RecyclerArrayAdapter<News> {

    public VhicleManaViewHolder holder;
    public VhicleManaAdapter(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
        return holder=new VhicleManaViewHolder(parent);
    }
}
